home *** CD-ROM | disk | FTP | other *** search
- Path: access1.digex.net!not-for-mail
- From: ell@access1.digex.net (Ell)
- Newsgroups: comp.lang.c++
- Subject: Re: Initializing: a(5) vs. a = 5
- Date: 15 Jan 1996 07:11:34 GMT
- Organization: The Universe
- Message-ID: <4dcun6$fei@news4.digex.net>
- NNTP-Posting-Host: access1.digex.net
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- In general, Scott ("when in doubt, be object-oriented" :) Meyer, in
- Effective C++, prefers initialization to assignment in constructors. This
- is the only way to initialize object constants, and Meyer sees it as
- minimizing "chances of initializing data in an inefficient manner". pg 39
-
- However, Meyer says "it may make sense to use assignment instead of
- initialization for large numbers of data members of built-in types, and you
- want them all initialized the same way in each constructor." pg 39
-
- Elliott
-
-
-